package com.originalpoint.origin_server.service;

import com.originalpoint.origin_server.pojo.Dish;
import com.originalpoint.origin_server.pojo.Dto.BasePageDto;
import com.originalpoint.origin_server.pojo.Dto.DishDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface DishService {
    //增
    int insertAll(Dish dish);
    //删
    int deleteByDishId(@Param("dishId") Integer dishId);
    //改
    int updateDish(Dish dish);
    //查
    List<Dish> selectAllDish(DishDto dishDto);

    int countDish(DishDto dishDto);

    Dish selectByDishID(Integer dishId);
}
